import service from '../service'

/**
 * 用户列表
 * @param {*} params
 */
export const list = params => {
  return service({
    url: 'admin/user/list',
    method: 'get',
    params: params
  })
}

/**
 * 修改用户推广人
 */

export const updateUserFather = params => {
  return service({
    url: '/admin/user/update/father',
    method: 'post',
    data: params
  })
}

/**
 * 用户绑卡列表
 */

export const userTiedCardList = params => {
  return service({
    url: '/admin/user/bankcard/list',
    method: 'get',
    params: params
  })
}

/**
 * 修改用户等级
 */
export const updateUserLevel = params => {
  return service({
    url: '/admin/user/update/level',
    method: 'post',
    data: params
  })
}
